PDFDocument.Save Method (console safe)
Saves the generated PDF to a file.

Save(
f
as FolderItem)
Parameters
- f
- The file to write.
Remarks
You are responsible for deleting existing file before writing if you want to write over a file that exists.
Like for example:
if f <> nil then
if f.Exists then
f.Delete()
end if
pdf.Save(f)
end if
The save method does nothing if the file existed, or if the FolderItem representing the file is a Directory.
See Also
PDFDocument Class